package org.kl.wx.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;

@Entity
@Table(name = "wx_material_acticle")
public class MaterialActicle extends AuditableEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -165695273310457733L;
	@Excel(exportName = "素材描述", exportProperty = "MaterialDesc")
	private Material material;
	@Excel(exportName = "标题")
	private String title;
	private String thumbMediaId;
	@Excel(exportName = "作者")
	private String author;
	@Excel(exportName = "摘要")
	private String digest;
	private Integer showCoverPic = 1;
	@Excel(exportName = "正文")
	private String content;
	@Excel(exportName = "原文URL")
	private String contentSourceUrl;
	private Integer pageNumber = 0;

	public MaterialActicle() {
	}

	public MaterialActicle(String id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "material_id")
	public Material getMaterial() {
		return material;
	}

	public void setMaterial(Material material) {
		this.material = material;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getThumbMediaId() {
		return thumbMediaId;
	}

	public void setThumbMediaId(String thumbMediaId) {
		this.thumbMediaId = thumbMediaId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getDigest() {
		return digest;
	}

	public void setDigest(String digest) {
		this.digest = digest;
	}

	public Integer getShowCoverPic() {
		return showCoverPic;
	}

	public void setShowCoverPic(Integer showCoverPic) {
		this.showCoverPic = showCoverPic;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContentSourceUrl() {
		return contentSourceUrl;
	}

	public void setContentSourceUrl(String contentSourceUrl) {
		this.contentSourceUrl = contentSourceUrl;
	}

	public Integer getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

}
